#p接受输入的密码
#pwd原有密码
#i计数器
i=3
pwd="123456"
while i:
    p = input("input you passwd: ")
    if p!=pwd and i>=0:
        i-=1
        print("passwd_err")
        print(str(i)+' '+"times chances left")
        continue
    elif p==pwd:
        print('Password verification is successful, congratulations')
        break
    else:
        print('end')
        break